#!/bin/bash
exec 3>&1 
exec  1>1.tmp

#count=1
#while read line
#do
#    echo "Line $count :$line"
#    count=$[ $count + 1 ]
#done

echo "This should store in the tmp file"
echo "along with this line"

exec 1>&3
echo "Now this strings should be  normal"
